<?php

namespace Modules\Core\Entities;

use Modules\Core\Entities\BaseEntity as Model;

class HistoryImage extends Model
{
    protected $guarded = [];
    protected $table = 'history_images';

    protected $casts = [
    ];

    static public $resourceName = '历史图片';

    static public function beforeGetList($options)
    {
    	if (@$options['tag_id']) {
    		$options['where']['category_id'] = $options['tag_id'];
    	}

    	return $options;
    }
}
